import request from '@/request/request.js'

//学生查询
export function studentLimit(data){
    return request({
        url:'/admin/admin/studentLimit',
        method:'post',
        data
    })
}
//市场部查询
export function allMarket(){
    return request({
        url:'/admin/admin/allMarket',
        method:'get',
    })
}
//班级查询
export function allClass(){
    return request({
        url:'/admin/admin/allClass',
        method:'get',
    })
}
//学生添加
export function addStudent(data){
    return request({
        url:'/admin/admin/addStudent',
        method:'post',
        data
    })
}
//修改学生
export function updateStudent(data){
    return request({
        url:'/admin/admin/updateStudent',
        method:'post',
        data
    })
}
//批量删除学生
export function delBatchStudent(ids){
    return request({
        url:'/admin/admin/delBatchStudent/'+ids,
        method:'post',
    })
}
//用户状态修改   
export function disable(data){
    return request({
        url:"/admin/admin/disable",
        method:'post',
        data
    })
}
//学生重置密码
export function resetPassword(userId){
    return request({
        url:'/admin/admin/resetPassword/'+userId,
        method:'get',
    })
}
//学生导入
export function upload(data){
    return request({
        url:'/admin/admin/upload',
        method:'post',
        headers:{'Content-Type':'multipart/form-data'},
        data
    })
}
//学生导出
export function download(){
    return request({
        url:'/admin/admin/download',
        method:'get',
        responseType:'blob'
    })
}
//树形查询
export function stu_list_tree(){
    return request({
        url:'/admin/admin/stu_list_tree',
        method:'get',
    })
}